// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import "babel-polyfill"
import Vue from 'vue'
import App from './App'
import router from './router'
import 'mint-ui/lib/style.css'
import "@/common/stylus/index.styl";
import wx from 'weixin-js-sdk'
import Mint from 'mint-ui';
// import Vconsole from 'vconsole';
// const vConsole = new Vconsole();
import  {getjsticket} from '@/http/wxApi';

Vue.prototype.$wx = wx;

Vue.config.productionTip = false

getjsticket().then(function (res) {
  wx.config({
    debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
    appId: res.data.appId, // 必填，公众号的唯一标识
    timestamp:res.data.timestamp, // 必填，生成签名的时间戳
    nonceStr: res.data.nonceStr, // 必填，生成签名的随机串
    signature: res.data.signature,// 必填，签名
    jsApiList: ['onMenuShareTimeline','scanQRCode','openLocation','getLocation'] // 必填，需要使用的JS接口列表
  });
})

Vue.use(Mint);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
 
  template: '<App/>'
})
